package com.example.demo.exception;

import jdk.nashorn.internal.objects.annotations.Getter;

/**
 *自定义异常
 */
public class ServiceException extends RuntimeException {
    private String code;

    public String getCode() {
        return code;
    }

    public ServiceException(String code, String msg){
        super(msg);
        this.code=code;
    }
}
